﻿// // --------------------------------------------------------------------------------------------------------------------
// // <copyright  file="Program.cs" company="AIT Gmbh & Co.KG" />
// // ----------------------------------------------------------------------------------------------------------------
namespace ConsoleApplication1
{
    #region

    using System;

    #endregion

    /// <summary>
    ///     The program.
    /// </summary>
    internal class Program
    {
        /// <summary>
        /// The main.
        /// </summary>
        /// <param name="args">
        /// The args.
        /// </param>
        public static void Main(string[] args)
        {
            new Class1().DoSomething();

            var class1 = new Class1();

            Class2 try1 = class1; // Compilerfehler
            var try2 = (Class2)class1; // Invalid Cast Exyception
            var try3 = class1 as Class2; // try3 = null

            Class1 tryBase = derivedClass;

            int a = new Random().Next();

            if (a == 0)
            {
                return true;
            }

            if (a ==) 
        }

        /// <summary>
        /// The return double.
        /// </summary>
        /// <param name="a">
        /// The a.
        /// </param>
        /// <returns>
        /// The <see cref="double"/>.
        /// </returns>
        private double ReturnDouble(int a)
        {
            double returnValue = 0;
            if (a == 0)
            {
                return a++;
            }

            if (a == 2)
            {
                return a--;
            }

            return a;
        }
    }
}